<?php /* Smarty version 2.6.26, created on 2011-03-03 02:34:51
         compiled from public/gallery.tpl */ ?>
 <?php echo '
<script type="text/javascript">
	$(function() {
		$(\'#imgs a\').lightBox(); // Select all links in object with gallery ID
	});
</script>
'; ?>


<div id="images-container">
	<div id="imgs">
		<?php $_from = $this->_tpl_vars['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['product']):
?>
			<?php $this->assign('image_urls', $this->_tpl_vars['product']->get_image_urls()); ?>
			<?php $_from = $this->_tpl_vars['image_urls']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['index2'] => $this->_tpl_vars['image']):
?>
				<?php $this->assign('image_path', $this->_tpl_vars['image']['image_path']); ?>
				<?php $this->assign('image_thumb_path', $this->_tpl_vars['image']['image_thumb_path']); ?>
				<div class="img"><a href='<?php echo $this->_tpl_vars['image_path']; ?>
' title='<?php echo $this->_tpl_vars['product']->get_reference(); ?>
 - <?php echo $this->_tpl_vars['product']->get_name(); ?>
 - $<?php echo $this->_tpl_vars['product']->get_price(); ?>
 - <?php echo $this->_tpl_vars['product']->get_description(); ?>
 '><img src='<?php echo $this->_tpl_vars['image_thumb_path']; ?>
' alt="" width="96" height="96"/></a></div>
			<?php endforeach; endif; unset($_from); ?>
		<?php endforeach; endif; unset($_from); ?>
	</div>
</div>
